//
//  UserCacheInfoModel.m
//  AccountSys
//
//  Created by guoshiqing on 2018/5/31.
//

#import "UserCacheInfoModel.h"

#define kAvatar @"avatar"
#define kName @"name"

@implementation UserCacheInfoModel

- (void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:_userName forKey:kAvatar];
    [aCoder encodeObject:_userAavatar forKey:kName];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super init]) {
        _userName = [aDecoder decodeObjectForKey:kAvatar];
        _userAavatar = [aDecoder decodeObjectForKey:kName];
    }
    return self;
}

@end
